/*
 * @Description:menu api
 * @Version: 2.0
 * @Autor: kafei
 * @Date: 2021-12-07 17:48:19
 * @LastEditors: kafei
 * @LastEditTime: 2021-12-21 15:21:13
 */
import request from '@/utils/request'

export function getAllMenu () {
  return request({
    url: '/api/allMenu',
    method: 'get'
  })
}

export function getMenuById (params) {
  return request({
    url: '/api/getMenuById',
    method: 'get',
    params
  })
}

export function updateMenu (data) {
  return request({
    url: '/api/updateMenu',
    method: 'post',
    data
  })
}

export function addMenu (data) {
  return request({
    url: '/api/addMenu',
    method: 'post',
    data
  })
}

export function delMenu (data) {
  return request({
    url: '/api/delMenu',
    method: 'post',
    data
  })
}
